package com.baizhi.app;

import com.baizhi.entity.R;
import com.baizhi.service.AudioService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/appAudio")
public class AppAudioController {
    @Autowired
    private AudioService audioService;

    @GetMapping("/selectAudio/{id}")
    public R selectAudio(@PathVariable("id") Integer id){
        log.debug(id+"");
        R r = audioService.selectAudio(id);
        return r;
    }
}
